/*
 * @Author: your name
 * @Date: 2022-04-27 14:51:36
 * @LastEditTime: 2022-05-04 20:30:20
 * @LastEditors: your name
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /vue3-vben/src/api/statis/dayStatis.ts
 */
import { defHttp } from '/@/utils/http/axios';
import {GetGameDayStatisParams, GetGameDayStatisResultModel  , GameUserChannelResultModel} from './model/statisModel';

enum Api {
  Game_Day_Statis = '/statis/wholeDay',
  Game_User_Channel = "/common/gameUserChannel"
}

/**
 * @description: 获取每日数据api
 */

export const GetGameDayStatisResultModelApi = (params: GetGameDayStatisParams) =>
  defHttp.get<GetGameDayStatisResultModel>({
    url: Api.Game_Day_Statis,
    params,
    headers: {
      ignoreCancelToken: true,
    },
  });


  /**
 * @description: 获取每日数据api
 */

export const GameUserChannelApi = () =>
defHttp.get<GameUserChannelResultModel>({
  url: Api.Game_User_Channel,
  headers: {
    ignoreCancelToken: true,
  },
});

